package com.haojiang.mh.service.entity;

/**
 * Created by ZapFive on 2019-05-25.
 * <p>
 * wuzhuang@mirahome.me
 */
public class TwoValueChartBean {

    private String date;
    private int leftValue = -1;
    private int rightValue = -1;
    private boolean isCurrMonth = true;

    public String getDay() {
        return date.substring(8);
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getLeftValue() {
        return leftValue;
    }

    public void setLeftValue(int leftValue) {
        this.leftValue = leftValue;
    }

    public int getRightValue() {
        return rightValue;
    }

    public void setRightValue(int rightValue) {
        this.rightValue = rightValue;
    }

    public boolean isCurrMonth() {
        return isCurrMonth;
    }

    public void setCurrMonth(boolean currMonth) {
        isCurrMonth = currMonth;
    }

    public boolean isNull() {
        return leftValue == -1 && rightValue == -1;
    }

    @Override
    public String toString() {
        return "TwoValueChartBean{" +
                "date='" + date + '\'' +
                ", leftValue=" + leftValue +
                ", rightValue=" + rightValue +
                '}';
    }
}
